package libro.cap04;

import java.sql.SQLException;
import java.util.Collection;

import com.sun.org.apache.bcel.internal.generic.NEW;

public class Facade {

	public Collection<DeptDTO> obtenerDepartamento() throws SQLException{

	DeptDAO deptDao = new DeptDAO();
	return deptDao.buscarTodos();
	
	}
	
	public Collection<EmpDTO> obtenerEmpleados(int deptno){
		
		EmpDAO empDao = new EmpDAO();
		return empDao.buscarUnDept(deptno);
		
	}
}
